package com.example.accessingdatajpa.service;

import com.example.accessingdatajpa.pojo.LiveBroadcast;
import com.example.accessingdatajpa.response.RestResponse;

import javax.transaction.Transactional;
import java.util.List;


public interface ILiveBroadcastService {

    //get all
    @Transactional
    RestResponse<List<LiveBroadcast>> queryAllLiveBroadcast();

    //add new
    @Transactional
    RestResponse<String> addNewUp(LiveBroadcast liveBroadcast);

    //update
    @Transactional
    RestResponse<String> updateUp(Long id, LiveBroadcast liveBroadcastDetails);

    //delete
    @Transactional
    RestResponse<String> deleteUp(Long id);
}
